<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>


<input type="file" id="uploadImg" />


<div id="review"></div>

<script>
    document.getElementById('uploadImg').addEventListener('change',function(){
        var reader = new FileReader();
        reader.onload = function (e) {
            document.getElementById('review').innerHTML='<img src="' + this.result + '" alt="" />';
        }
        reader.readAsDataURL(this.files[0]);
    });
</script>

</body>
</html>